//
//  UILable+extension.swift
//  便利构造器
//
//  Created by HM on 16/9/28.
//  Copyright © 2016年 HM. All rights reserved.
//

import UIKit

//extension 扩展
extension UILabel {
    convenience init(text: String, fontSize: CGFloat = 13, textColor: UIColor = UIColor.darkGray, alignment: NSTextAlignment = .left, numberOfLines: Int = 0) {
        self.init()
        
        self.text = text
        self.font = UIFont.systemFont(ofSize: fontSize)
        self.textColor = textColor
        self.textAlignment = alignment
        self.numberOfLines = numberOfLines
    }
}
